package com.xunqi.mall.service;

import com.github.pagehelper.PageInfo;
import com.xunqi.mall.vo.OrderVo;
import com.xunqi.mall.vo.ResponseVo;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @create: 2020-04-24 09:43
 **/
public interface OrderService {

    /**
     * 创建订单
     * @param uid
     * @param shippingId
     * @return
     */
    ResponseVo<OrderVo> addOrder(Integer uid,Integer shippingId);


    /**
     * 查询订单列表
     * @param uid
     * @param pageSize
     * @param pageNum
     * @return
     */
    ResponseVo<PageInfo> orderList(Integer uid, Integer pageSize, Integer pageNum);


    /**
     * 根据订单编号查询订单详情
     * @param uid
     * @param orderNo
     * @return
     */
    ResponseVo<OrderVo> detailOrder(Integer uid, Long orderNo);


    /**
     * 根据订单编号取消该订单
     * @param uid
     * @param orderNo
     * @return
     */
    ResponseVo cancelOrder(Integer uid,Long orderNo);


    /**
     * 修改订单支付状态
     * @param orderNo
     * @return
     */
    void paid(Long orderNo);
}
